﻿using System;
using System.Linq.Expressions;

namespace Medora.Data
{
    public interface ISortConstructor<T>
        where T : class
    {
        Expression<Func<T, DateTime>> GetSortExpessionByDateTime(string field);
        Expression<Func<T, string>> GetSortExpessionByString(string field);
        Expression<Func<T, double>> GetSortExpessionByDouble(string field);
        Expression<Func<T, int>> GetSortExpessionByInt(string field);
    }
}